﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户注册 - 三剑客在线教育系统</title>
    <link rel="stylesheet" href="../css/navstyle.css" media="all" />
    <link rel="stylesheet" href="../css/page.css" media="all" />
    <link rel="stylesheet" href="../css/tophit.css" media="all" />
    <style type="text/css">
        .main
        {
            margin: 5px auto 0px auto;
            width: 1024px;
            height: 100%;
            background-color: #FFFFFF;
            border: 0;
            text-align: left;
            
        }
        .left
        {
            width: 300px;
            float: left;
            padding: 10px;
            background-color: #ffffff;
        }
        .rigth
        {
            width: 650px;
            background-color: #ffffff;
            float: left;
        }
        .info
        {
            width: 70%;
            margin: 0 auto;
            background-color: #ffffff;
        }
        .info img
        {
            max-width: 430px;
            border:0px;
            width: expression(this.width > 430 ? 430: true);
        }
        .line
        {
            width: 100%;
            height: 1px;
            border-bottom: 1px solid #DFDFDF;
            overflow: hidden;
            margin-bottom: 5px;
            margin-top: 5px;
        }
        .title
        {
            text-align: center;
            font-size: 20px;
            font-weight: bold;
            margin-top: 10px;
            _margin-top: 5px;
            margin-bottom: 5px;
            _margin-bottom: 0px;
            text-align:center;
        }
       
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="all">
        <div class="banner">
            <div class="logo">
            </div>
            <div class="blankleft">
            </div>
            <div class="blankalt">
            </div>
            <div class="blankrigth">
            </div>
        </div>
        <div class="NavBar">
            <div id="menu">
                <ul>
                    <li><a href="/" class="current"><span>首页</span></a></li>
                    <li><a href="../newsList.aspx"><span>新闻中心</span></a></li>
                    <li><a href="../javaList.aspx"><span>Java专区</span></a></li>
                    <li><a href="../netList.aspx"><span>.net专区</span></a></li>
                    <li><a href="../dataList.aspx"><span>数据库专区</span></a></li>
                    <li><a href="../otherList.aspx"><span>其他 专区</span></a></li>
                    <li><a href="../teacherList.aspx"><span>教师简介</span></a></li>
                    <li><a href="../aboutus.aspx"><span>关于我们</span></a></li>
                </ul>
            </div>
        </div>
        <div class="main">
            <div class="mappath">
                您所在的位置：<asp:SiteMapPath ID="smp_web" runat="server">
                </asp:SiteMapPath>
            </div>
            <div class="center"></div>
            <div class="info">
            <center><span class="title">用户注册</span></center>
                <div class="line"></div>
                <div><br /><br /><br />
                    <table style="width: 100%;">
                        <tr>
                            <td  style="text-align: right; height: 45px">
                                用户名：</td>
                            <td>
                                <asp:TextBox ID="TXTUsername" runat="server" Width="60%"></asp:TextBox>
                                <asp:Label ID="lbl_check" runat="server" ForeColor="#999999"></asp:Label>
                            </td>
                            <td>
                                <asp:Button ID="btn_checkName" runat="server" Text="检查用户名" Width="80px" 
                                    CausesValidation="False" onclick="btn_checkName_Click" />
                                <asp:RequiredFieldValidator ID="RFVUsername" runat="server" 
                                    ErrorMessage="用户名不能为空" ControlToValidate="TXTUsername" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:CustomValidator ID="cv_username" runat="server" 
                                    ControlToValidate="TXTUsername" Display="Dynamic" ErrorMessage="用户名已存在" 
                                    onservervalidate="cv_username_ServerValidate"></asp:CustomValidator>
                            </td>
                        </tr>
                        <tr>
                            <td  style="text-align: right; height: 45px">
                                密码(6-16位)：</td>
                            <td>
                                <asp:TextBox ID="TXTPwd" runat="server" Width="100%" TextMode="Password"></asp:TextBox></td>
                            <td>
                                <asp:RequiredFieldValidator ID="RFVPwd" runat="server" ErrorMessage="密码不能为空" ControlToValidate="TXTPwd" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="rev_pwdLength" runat="server" 
                                    ControlToValidate="TXTPwd" Display="Dynamic" ErrorMessage="长度不合要求" 
                                    ValidationExpression="(.|\n){6,16}"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td  style="text-align: right; height: 45px">
                                确认密码：</td>
                            <td>
                                <asp:TextBox ID="TXTRePwd" runat="server" Width="100%" TextMode="Password"></asp:TextBox></td>
                            <td>
                                <asp:RequiredFieldValidator ID="RFVRePwd" runat="server" ErrorMessage="确认密码不能为空" ControlToValidate="TXTRePwd" ValidationGroup="pwd" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CVRePwd" runat="server" ErrorMessage="密码不一致" ValidationGroup="pwd"
                                    ValueToCompare="TXTPwd" ControlToValidate="TXTRePwd" ControlToCompare="TXTPwd" EnableTheming="True" Display="Dynamic"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align: right; height: 45px">
                                性&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
                            <td>
                                <asp:RadioButton ID="RBTMan" runat="server" Checked="True" GroupName="sex"
                                    Text="男" />
                                    <asp:RadioButton ID="RBTFemale" runat="server"  GroupName="sex"
                                    Text="女"/>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; height: 45px">
                                邮箱地址：</td>
                            <td>
                                <asp:TextBox ID="TXTEmail" runat="server" Width="100%"></asp:TextBox></td>
                            <td>
                                <asp:RequiredFieldValidator ID="RFVEmail" runat="server" ErrorMessage="邮箱地址不能为空" ControlToValidate="TXTEmail" Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REVEmail" runat="server" ErrorMessage="请输入正确的电子邮箱"
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="TXTEmail" Display="Dynamic"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align:right; height: 45px">
                                </td>
                            <td>
                                <asp:Button ID="BTNRegister" runat="server" Text="注册" 
                                    onclick="BTNRegister_Click" />
                                &nbsp;&nbsp;
                                </td>
                        </tr>
                    </table>
                    <br /><br /><br /><br /><br /><br />
            </div>
            
            <div style="font: 0px/0px sans-serif; clear: both; display: block">
            </div>
        </div>
        <div class="bottom">
            <div class="blogroll">
                <img src="../images/blogrool.gif" alt="" height="31" width="88" border="0" />
                <asp:Repeater ID="blogrollList" runat="server">
                    <ItemTemplate>
                        <a href="http://<%# DataBinder.Eval(Container.DataItem, "sitelink")%>" target="_blank">
                            <img src="<%# DataBinder.Eval(Container.DataItem, "siteLogo")%>" height="31" width="88"
                                alt="<%# DataBinder.Eval(Container.DataItem, "siteAlt")%>" border="0" /></a>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
        <div class="splitred">
        </div>
        
        <div class="copyright">
            <% =strcr %>
         </div>
    </div>
    </form>
</body>
</html>

